package com.x.provider.mc.configure;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@RefreshScope
public class ApplicationConfig {

    @Value("${centrifugo.web.socket.url:null}")
    private String centrifugoWebSocketUrl;

    @Value("${centrifugo.http.api.url:null}")
    private String centrifugoHttpApiUrl;

    @Value("${centrifugo.token.secret:null}")
    private String centrifugoTokenSecret;

    @Value("${centrifugo.api.key:null}")
    private String centrifugoApiKey;

    @Value("${message.expire.day:100}")
    private Integer messageExpireDays;

    private int verificationCodeExpireMinute = 5;

    @Value("${x.web.socket.url:null}")
    private String xWebSocketUrl;

    @Value("${x.web.socket.token.secret:null}")
    private String xWebSocketTokenSecret;

    @Value("${resume.default.nickName:null}")
    private String defaultNickName;
    @Value("${resume.default.avatarUrl:null}")
    private String defaultAvatarUrl;
}
